package com.ruoyi.swla2.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.swla2.mapper.TerminalsFreezeXbMapper;
import com.ruoyi.swla2.domain.TerminalsFreezeXb;
import com.ruoyi.swla2.service.ITerminalsFreezeXbService;

/**
 * 小用户冻结数据Service业务层处理
 * 
 * @author gdqt
 * @date 2023-08-28
 */
@Service
public class TerminalsFreezeXbServiceImpl implements ITerminalsFreezeXbService 
{
    @Autowired
    private TerminalsFreezeXbMapper terminalsFreezeXbMapper;

    /**
     * 查询小用户冻结数据
     * 
     * @param tenantId 小用户冻结数据主键
     * @return 小用户冻结数据
     */
    @Override
    public TerminalsFreezeXb selectTerminalsFreezeXbByTenantId(String tenantId)
    {
        return terminalsFreezeXbMapper.selectTerminalsFreezeXbByTenantId(tenantId);
    }

    /**
     * 查询小用户冻结数据列表
     * 
     * @param terminalsFreezeXb 小用户冻结数据
     * @return 小用户冻结数据
     */
    @Override
    public List<TerminalsFreezeXb> selectTerminalsFreezeXbList(TerminalsFreezeXb terminalsFreezeXb)
    {
        return terminalsFreezeXbMapper.selectTerminalsFreezeXbList(terminalsFreezeXb);
    }

    /**
     * 新增小用户冻结数据
     * 
     * @param terminalsFreezeXb 小用户冻结数据
     * @return 结果
     */
    @Override
    public int insertTerminalsFreezeXb(TerminalsFreezeXb terminalsFreezeXb)
    {
        return terminalsFreezeXbMapper.insertTerminalsFreezeXb(terminalsFreezeXb);
    }

    /**
     * 修改小用户冻结数据
     * 
     * @param terminalsFreezeXb 小用户冻结数据
     * @return 结果
     */
    @Override
    public int updateTerminalsFreezeXb(TerminalsFreezeXb terminalsFreezeXb)
    {
        return terminalsFreezeXbMapper.updateTerminalsFreezeXb(terminalsFreezeXb);
    }

    /**
     * 批量删除小用户冻结数据
     * 
     * @param tenantIds 需要删除的小用户冻结数据主键
     * @return 结果
     */
    @Override
    public int deleteTerminalsFreezeXbByTenantIds(String[] tenantIds)
    {
        return terminalsFreezeXbMapper.deleteTerminalsFreezeXbByTenantIds(tenantIds);
    }

    /**
     * 删除小用户冻结数据信息
     * 
     * @param tenantId 小用户冻结数据主键
     * @return 结果
     */
    @Override
    public int deleteTerminalsFreezeXbByTenantId(String tenantId)
    {
        return terminalsFreezeXbMapper.deleteTerminalsFreezeXbByTenantId(tenantId);
    }
}
